<template>
<h1>El-栅格布局组件</h1>
  <el-row>
    <el-col :span="8" style="background-color: salmon">111</el-col>
    <el-col :span="8" style="background-color: royalblue">222</el-col>
    <el-col :span="8" style="background-color: yellow">333</el-col>
  </el-row>
  <el-row :gutter="20">
    <el-col :span="12"><img src="imgs/rich.jpg" style="width: 100%;"></el-col>
    <el-col :span="12"><img src="imgs/rich.jpg" style="width: 100%;"></el-col>
  </el-row>
  <el-row :gutter="20">
    <el-col :span="4" v-for="i in 6" :key="i"><img src="imgs/rich.jpg" style="width: 100%;"></el-col>
  </el-row>
  <el-row :gutter="20">
    <el-col :span="4"><img src="imgs/rich.jpg" style="width: 100%;"></el-col>
    <el-col :span="8"><img src="imgs/rich.jpg" style="width: 100%;"></el-col>
    <el-col :span="12"><img src="imgs/rich.jpg" style="width: 100%;"></el-col>
  </el-row>
  <el-row :gutter="20">
    <el-col :span="3" v-for="i in 8" style="border: 3px solid green">{{i}}</el-col>
  </el-row>
  <h3>列偏移</h3>
  <el-row>
    <el-col :span="20" :offset="4">
      <img src="imgs/rich.jpg" style="width: 100%">
    </el-col>
  </el-row>
  <h3>布局嵌套</h3>
  <el-row>
    <el-col :span="12" style="border: 5px solid lightcoral;">111</el-col>
    <el-col :span="12" style="border: 5px solid red;">
      <el-row>
        <el-col :span="8" style="border: 5px solid lightskyblue;">222</el-col>
        <el-col :span="8" style="border: 5px solid lightskyblue;">222</el-col>
        <el-col :span="8" style="border: 5px solid lightskyblue;">222</el-col>
      </el-row>
    </el-col>
  </el-row>
  <h1>我的主页</h1>
  <el-row :gutter="10">
    <el-col :span="10">
      <el-menu
          default-active="3"
          mode="vertical"
      >
        <el-menu-item index="1">选项1</el-menu-item>
        <el-menu-item index="2">选项2</el-menu-item>
        <el-menu-item index="3">选项3</el-menu-item>
      </el-menu>
    </el-col>
    <el-col :span="12">
      <el-row :gutter="20">
        <el-col :span="8" v-for="i in 3"><img src="imgs/rich.jpg" style="width: 100%;"></el-col>
      </el-row>
    </el-col>
  </el-row>

</template>
<script setup>

</script>


<style scoped>

</style>